package multi

import (
	"gitee.com/ichub/goconfig/common/base/baseiface"
	"gitee.com/ichub/goconfig/common/basedi"
)

const single_nameMultiEntity = "MultiEntity"

// init
// register
// load
func init() {
	registerBeanMultiEntity()
}

// register MultiEntity
func registerBeanMultiEntity() {
	basedi.RegisterLoadBean(single_nameMultiEntity, LoadMultiEntity)
}

func FindBeanMultiEntity() *MultiEntity {
	return basedi.FindBean(single_nameMultiEntity).(*MultiEntity)
}

func LoadMultiEntity() baseiface.ISingleton {
	return NewMultiEntity()
}
